package org.totoro.jol;

import org.openjdk.jol.info.ClassLayout;

/**
 * -XX:-UseCompressedClassPointers -XX:-UseCompressedOops
 *
 * @author daocr
 * @date 2021/5/24
 */
public class Jol {




    public static void main(String[] args) {

        JolObj object = new JolObj();
        System.out.println(ClassLayout.parseInstance(object).toPrintable());
//
//
        synchronized (object) {
            System.out.println(ClassLayout.parseInstance(object).toPrintable());
        }
    }


    public static class JolObj {
//        public int age = 10;
    }
}
